<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('host',function(){
    return ('likuo');
});
Route::get("lll","photoController@likuo");



//博客首页路由
Route::get("/index","photoController@index");
//添加文章路由
Route::get("add","photoController@add");
//添加文章 处理
Route::post("doAdd","photoController@doAdd");
//阅读路由
Route::get("read/{id}","photoController@read");
//修改
Route::get("update/{id}","photoController@update");
//修改处理
Route::post("doUpdate","photoController@doUpdate");
//删除
Route::post("del","photoController@del");



//===================登录注册
// 登录路由
Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::post('auth/login', 'Auth\AuthController@postLogin');
Route::get('auth/logout', 'Auth\AuthController@getLogout');
// 注册路由...
Route::get('auth/register', 'Auth\AuthController@getRegister');
Route::post('auth/register', 'Auth\AuthController@postRegister');

//用户信息
//Route::get('auth/user', 'Auth\AuthController@user');
//退出登录
//Route::get('auth/logout', 'Auth\AuthController@logout');
//登录判断
//Route::post('auth/postLogin', 'Auth\AuthController@postLogin');
